package br.com.cast.nf.NotaFiscal;

import org.apache.wicket.feedback.ExactLevelFeedbackMessageFilter;
import org.apache.wicket.feedback.FeedbackMessage;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.request.mapper.parameter.PageParameters;

public class HomePage extends WebPage {
	private static final long serialVersionUID = 1L;

	public static final String conteudo = "conteudo";
	
	public HomePage(final PageParameters parameters) {
		super(parameters);

		add(new FeedbackPanel("msgErro", 
				new ExactLevelFeedbackMessageFilter(FeedbackMessage.ERROR))
			.setOutputMarkupId(true));
		
		add(new FeedbackPanel("msgSucesso", 
				new ExactLevelFeedbackMessageFilter(FeedbackMessage.SUCCESS))
			.setOutputMarkupId(true));

		add(new Menu("menu"));

		add(new Label(conteudo)
			.setOutputMarkupId(true));
    }
}
